/*
 * Tic-Tac-Toe - Turn-based strategy game
 * Copyright 2008, 2009 Shayne Riley and Paul Maseberg
 *
 * Tic-Tac-Toe is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Tic-Tac-Toe is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tic-Tac-Toe.  If not, see <http://www.gnu.org/licenses/>
 * or write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * To contact the authors on questions or issues regarding the license,
 * you may send an email to <shayner at gmail dot com>
 */

#ifndef MENUBUTTON_H_
#define MENUBUTTON_H_

#include <string>
#include "Graphics.h"
#include "Button.h"

/**
 * A button intended to be shown on the title screen.
 */
class MenuButton : public Button
{
public:
    /**
     * Constructor for a button with a visual element.
     *
     * @param gfx   The graphics system used to draw the screen.
     * @param text  The text to show in the button.
     * @param leftX The left side of the region, in pixels from the left side
     *  of the screen.
     * @param lowerY    The lower side of the region, in pixels from the bottom
     *  side of the screen.
     * @param width The width of the region in pixels.
     * @param height    The height of the region in pixels.
      */
    MenuButton(Graphics *gfx, std::string text, int leftX = -1, int lowerY = -1,
            int width = 0, int height = 0);

    virtual ~MenuButton();

    /**
     * Draws the button. WOO!
     */
    void draw();

private:
    Graphics *mGfx;
    std::string mText;
};

#endif /* MENUBUTTON_H_ */
